﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                assembly=" Inovout.Kuajing"
				        namespace="Inovout.Kuajing.Models">

  <class name="Commodity" table="Commodity">
    <id name="Id" access="field.camelcase"
        column="CommodityId" type="Int32">
      <generator class="native" />
    </id>
    <property name="Code" />
    <property name="MeasurementUnit" />
    <property name="CategoryCode" />
    <property name="FeatureCode"/>
    <property name="FeatureName"/>
    <property name="Name" />
    <property name="Price" />
    <property name="Title" />
    <property name="Stock" />
    <property name="Attributes" />
    <property name="Remarks" />
    <property name="StoreCode" />
    <property name="ExternalCode" />
    <property name="ExternalShipperId" />
    <property name="OrginalPrice" type="float" />
    <property name="MaxRetailPrice" type="float" />
    <property name="MinRetailPrice" type="float" />
    <property name="PostTaxesCategoryCode" />


    <many-to-one name="ShippingTemplate" column="ShippingTemplateId" class="Inovout.Kuajing.Models.ShippingTemplate" />
    <many-to-one name="Location" column="LocationId" class="Inovout.Locations.Location" />
    <many-to-one name="Warehouse" column="WarehouseId" class="Inovout.Kuajing.Models.Warehouse" />
    <many-to-one name="Brand" column="BrandId" class="Inovout.Kuajing.Models.Brand" />
    
    <property name="CreatedTime" access="field.camelcase" />
    <property name="CreatedUserName" access="field.camelcase" />
    <property name="ModifiedTime" access="field.camelcase" />
    <property name="ModifiedUserName" access="field.camelcase" />
    <property name="AccessedTime" access="field.camelcase" />
    <property name="AccessedUserName" access="field.camelcase" />
    <property name="Memo" />
    <property name="IsInvalid" />
  </class>
</hibernate-mapping>


